#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

int main()
{
    struct stat st;

    int ret = stat("04.txt", &st);
    if(ret == -1) {
        perror("stat error: ");
        exit(-1);
    }
    
    printf("file size: %d\n", st.st_size);
    return 0;
}

